﻿using System.ComponentModel.DataAnnotations;

namespace Lin_shop.Models
{
    public class AddUserRequest
    {

        //请求参数 需要什么参数
        /// <summary>
        /// 账号 用户名
        /// </summary>
       [StringLength(11,ErrorMessage="请输入正确的手机号码")]
        public string UserName { get; set; }
        [StringLength(30, ErrorMessage = "请输入正确的密码")]
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        [StringLength(30, ErrorMessage = "请输入正确的密码")]
        public string CirPassword { get; set; }
    }
}